package cn.com.xuhx.enmu;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum SexEnmu {

    MAN(1,"男"),
    WOMAN(2,"女");

    //@EnumValue用来标注需要存入库中的字段值
    @EnumValue
    private Integer sex;

    private String sexName;

    SexEnmu(Integer sex, String sexName) {
        this.sex = sex;
        this.sexName = sexName;
    }

    public Integer getSex() {
        return sex;
    }

    public String getSexName() {
        return sexName;
    }
}
